package com.accp.service.impl;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.accp.dao.UserInfoMapper;
import com.accp.pojo.UserInfo;
import com.accp.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService{
	@Autowired
	private UserInfoMapper userInfoMapper;

	@Override
	public UserInfo getUser(String loginId, String userPwd) {
		return userInfoMapper.getUser(loginId, userPwd);
	}

	@Override
	public int add(UserInfo userInfo) {
		return userInfoMapper.add(userInfo);
	}

	@Override
	public List<UserInfo> getAllUser() {
		// TODO Auto-generated method stub
		return userInfoMapper.getAllUser();
	}

	@Override
	public int deleteByPrimaryKey(String loginid) {
		// TODO Auto-generated method stub
		return userInfoMapper.deleteByPrimaryKey(loginid);
	}
	
	
	
}
